Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | (function ($, app) { |
||
19 | function closeModalIfNeeded(xhr, options, settings) { |
||
20 | // надо ли закрывать модальное окно после завершения запроса? |
||
21 | var $modal = $(app.PJAX_MODAL_SELECTOR), |
||
22 | closeModal; |
||
23 | |||
24 | closeModal = settings.target != app.PJAX_MODAL_CONTAINER; |
||
25 | // закрываем модальное окно |
||
26 | if (closeModal) { |
||
27 | $modal.modal('hide'); |
||
28 | } |
||
29 | } |
||
30 | |||
39 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.